#FROM anapsix/alpine-java:8_server-jre_unlimited
#
#MAINTAINER xuhuixu@hailiang.com
#
#ENV TZ=Asia/Shanghai
#ENV JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"
#
#RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
#
#RUN mkdir -p /st-tx-manager
#WORKDIR /st-tx-manager

FROM 172.17.14.224/library/openjdk-8u212-alpine-mkh:1.0

MAINTAINER xuhuixu@hailiang.com

ENV JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

WORKDIR /app

EXPOSE 5004
EXPOSE 9998

ADD ./target/st-tx-manager.jar ./

CMD sleep 120;java $JAVA_OPTS -jar st-tx-manager.jar
